package Data;

/*import org.mortbay.jetty.Server;
import org.mortbay.jetty.servlet.Context;
import org.mortbay.jetty.servlet.ServletHolder;
*/
import sockets.FileServer;
import sockets.updatingChangesServer;

/**
 * main class , from his the server start to run. 
 * create a new fileserver thread and runs it
 * @author Erez
 *
 */

public class Main {
    public static void main(String[] args) throws Exception {
    	/*
     Server server = new Server(8080);
     Context root = new Context(server,"/",Context.SESSIONS);
     root.addServlet(new ServletHolder(new servlets.HelloServlet()), "/*");
     root.addServlet(new ServletHolder(new servlets.ForeverFrameServlet()), "/time");
     server.start();
     server.join();
     */
      new Thread(new updatingChangesServer()).start();	
      new Thread(new FileServer()).run();
      	
    }
}
